import request from '@/utils/BSideRequest'
export function GetSdModelPage(pageNum,prompt) {
    return request({
        url: 'emp/get/page?pageNum='+ pageNum +'&prompt='+ prompt,
        method: 'GET'
    })
}

export function GetEmployeeList() {
    return request({
        url: 'emp/get/emp',
        method: 'GET'
    })
}

export function DeleteEmployee(data) {
    return request({
        url: 'emp/delete?id='+data,
        method: 'POST'
    })
}

export function AppendEmployee(data){
    return request({
        url: 'emp/append',
        method: 'POST',
        data
    })
}

export function UpdateEmployee(data){
    return request({
        url: 'emp/update',
        method: 'POST',
        data
    })
}

export function GetOrdersList(pageNum,prompt) {
    return request({
        url: 'orders/get/page?pageNum='+pageNum+"&prompt="+prompt,
        method: 'GET'
    })
}

export function UpdateOrders(data){
    return request({
        url: 'orders/update',
        method: 'POST',
        data
    })
}

export function AppendOrders(data){
    return request({
        url: 'orders/append',
        method: 'POST',
        data
    })
}

export function DeleteOrders(data) {
    return request({
        url: 'orders/delete?id='+data,
        method: 'POST'
    })
}